<extend file='../master'/>
<block name="content">
    <div class="well">
        <a href="{{site_url('site/newsPost')}}" class="btn btn-success">新增图文素材</a>
    </div>
    <br>
    <ul class="news">
        <foreach from="$data" value="$v">
            <?php $v['content'] = json_decode($v['content'],true);?>
            <li>
                <foreach from="$v['content']" value="$d">
                    <img src="{{$d[0]['thumb']}}" alt="" style="width:180px;"><br/>
                    <h4>{{$d['title']}}</h4>
                    <p>{{$d['digest']}}</p><br/>
                    <button class="btn btn-success btn-sm">群发</button>
                </foreach>
            </li>
        </foreach>
    </ul>
</block>
<style>
    ul.news li {
        border : solid 1px #999999;
        float  : left;
        list-style: none;
        margin : 10px;
    }
</style>